<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>余额查询</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.1.3/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap" rel="stylesheet">
    <style>
        body {
            min-height: 100vh;
            margin: 0;
            background: linear-gradient(135deg, #e0e7ff 0%, #f0fdfa 100%);
            font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .glass-card {
            background: rgba(255, 255, 255, 0.7);
            border-radius: 24px;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            max-width: 420px;
            width: 100%;
            padding: 40px 36px 36px 36px;
            margin: 40px auto;
            animation: fadeIn 1.2s cubic-bezier(.39,.575,.56,1.000);
        }
        @keyframes fadeIn {
            0% { opacity: 0; transform: translateY(40px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        .btn {
            border-radius: 12px !important;
            font-weight: 600;
            transition: transform 0.18s, box-shadow 0.18s;
        }
        .btn:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 6px 24px rgba(37,99,235,0.13);
        }
        h2 {
            text-align: center;
            color: #2563eb;
            font-size: 2rem;
            font-weight: 700;
            letter-spacing: 2px;
            margin-bottom: 32px;
            text-shadow: 0 2px 8px rgba(37,99,235,0.08);
        }
    </style>
</head>
<body>
<div class="glass-card">
    <h2>余额查询</h2>
    <form th:action="@{/user/query}" method="post">
        <div class="d-grid gap-2">
            <button type="submit" class="btn btn-primary">查询余额</button>
            <a href="/user/main" class="btn btn-link">返回主页</a>
        </div>
        <div th:if="${error}" class="text-danger mt-2" th:text="${error}"></div>
        <div th:if="${balance}" class="text-success mt-2">当前余额：<span th:text="${balance}"></span> 元</div>
    </form>
</div>
</body>
</html> 